package main

import (
	"fairysunny.com/gin-example/model"
	"fairysunny.com/gin-example/router"
	"fairysunny.com/gin-example/util"
	"github.com/gin-gonic/gin"
)

func main() {
	util.InitConfig()
	util.InitLogger()
	model.InitDatabase()

	gin.SetMode(util.Config.AppMode)
	r := gin.Default()

	util.InitSession(r)
	router.InitRouter(r)

	r.Run(":8088")
}
